package com.jt;


import com.jt.demo.User;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class SpringConfig {
    @Bean
    public User user() {

        return new User(); //相当于xml反射机制创建对象
    }
}
